package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

@Data
@TableName("ve_file_files")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class VeFileFilesEntity {

    /**主键id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "SHA1值")
    @TableField(value = "sha1")
    private String sha1;

    @ApiModelProperty(value = "文件名")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "文件存储地址")
    @TableField(value = "sourceFile")
    private String sourceFile;

    @ApiModelProperty(value = "失败代码")
    @TableField(value = "error")
    private String error;

    @ApiModelProperty(value = "扩展名")
    @TableField(value = "ext")
    private String ext;

    @ApiModelProperty(value = "文件大小，字节单位")
    @TableField(value = "size")
    private Long size;

    @ApiModelProperty(value = "上传时间")
    @TableField(value = "createTime")
    private Long createTime;

    @ApiModelProperty(value = "创建用户")
    @TableField(value = "createUser")
    private Long createUser;

    @ApiModelProperty(value = "终端系统ID")
    @TableField(value = "terminalId")
    private Long terminalId;
}
